--插入基本的菜单数据
insert into system_menu (menu_code,menu_name,menu_url,menu_logo,menu_parent_code)
VALUES
("${moduleName}:${objectName}","${tableField.Comment!''}","${moduleName}/${objectName}",null,"${moduleName}"),
("${moduleName}:${objectName}:query","查询","${moduleName}/${objectName}/query",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:queryByPage","分页查询","${moduleName}/${objectName}/queryByPage",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:insert","插入","${moduleName}/${objectName}/insert",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:update","更新","${moduleName}/${objectName}/update",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:getById","根据Id查询","${moduleName}/${objectName}/getById",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:get","根据实体查询","${moduleName}/${objectName}/get",null,"${moduleName}:${objectName}"),
("${moduleName}:${objectName}:delete","删除","${moduleName}/${objectName}/delete",null,"${moduleName}:${objectName}");

--菜单和超级管理员关联
insert into system_role_menu(rm_menu_code,rm_role_code)
VALUES
('${moduleName}:${objectName}','admin'),
('${moduleName}:${objectName}:query','admin'),
('${moduleName}:${objectName}:queryByPage','admin'),
('${moduleName}:${objectName}:insert','admin'),
('${moduleName}:${objectName}:update','admin'),
('${moduleName}:${objectName}:getById','admin'),
('${moduleName}:${objectName}:get','admin'),
('${moduleName}:${objectName}:delete','admin');